Debian 10 Basic LAMP Install

10 Sep

Deb 10:

apt-get install qemu-guest-agent openssh-server wget
nano /etc/ssh/sshd_config

apt-get install apt-transport-https lsb-release ca-certificates

wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
echo “deb https://packages.sury.org/php/ $(lsb_release -sc) main” >> /etc/apt/sources.list
apt-get update

apt-get install php5.6-mysql php5.6-cli php5.6-mbstring
apt-get install apache2

apt-get install apt-get install libapache2-mod-php5.6 fail2ban

apt-get install mariadb-server
mysql_secure_installation

mysql -u root -p
Create a user that can use phpMyAdmin (instead of root):

CREATE USER ‘phpmyadmin’@’%’ IDENTIFIED BY ‘password’;
GRANT ALL PRIVILEGES ON *.* TO ‘phpmyadmin’@’%’ WITH GRANT OPTION;
quit;

nano /etc/mysql/my.cnf
sql_mode = “”

mod-security (apache security):
apt-get install libapache2-mod-security2 git

systemctl restart apache2
cp /etc/modsecurity/modsecurity.conf-recommended /etc/modsecurity/modsecurity.conf
nano /etc/modsecurity/modsecurity.conf
SecRuleEngine On
systemctl restart apache2

rm -rf /usr/share/modsecurity-crs
git clone https://github.com/SpiderLabs/owasp-modsecurity-crs.git /usr/share/modsecurity-crs
nano /etc/apache2/mods-enabled/security2.conf

cp /usr/share/modsecurity-crs/crs-setup.conf.example /usr/share/modsecurity-crs/crs-setup.conf

Add before
IncludeOptional “/usr/share/modsecurity-crs/*.conf
IncludeOptional “/usr/share/modsecurity-crs/rules/*.conf

a2enmod headers
systemctl restart apache2

# remove apache2 headers:
nano /etc/apache2/apache2.conf
add at the end:
ServerTokens Prod
ServerSignature Off

10 thoughts on “Debian 10 Basic LAMP Install

  1. أنابيب API 5L في العراق تم تصميم أنابيب API 5L في مصنع إيليت بايب لصناعة النفط والغاز، مما يوفر قوة وموثوقية فائقة للتطبيقات المطلوبة. تلتزم هذه الأنابيب بأعلى معايير الصناعة، مما يضمن أدائها الجيد في بيئات مختلفة. يفتخر مصنع إيليت بايب بكونه أحد أفضل وأعتمد المصانع في العراق، حيث يوفر أنابيب API 5L التي تدعم البنية التحتية الحيوية للطاقة. اكتشف عروض أنابيب API 5L لدينا على elitepipeiraq.com.

  2. When I initially commented I clicked the -Notify me when new feedback are added- checkbox and now every time a comment is added I get 4 emails with the identical comment. Is there any approach you can remove me from that service? Thanks!

  3. Finkelman BS, Rubinstein WS, Friedman S, Friebel TM, Dubitsky S, Schonberger NS, Shoretz R, Singer CF, Blum JL, Tung N, Olopade OI, Weitzel JN, Lynch HT, Snyder C, Garber JE, Schildkraut J, Daly MB, Isaacs C, Pichert G, Neuhausen SL, Couch FJ, van t Veer L, Eeles R, Bancroft E, Evans DG, Ganz PA, Tomlinson GE, Narod SA, Matloff E, Domchek S, Rebbeck TR priligy tablets online opened it yesterday just to look at it and the chem is green and somewhat solidified

  4. Demographic, anthropometric, and reproductive characteristics of patients in the two groups at the time of entering the study are demonstrated in Table 1 priligy tablets price However not all patients respond favorably to crystalloid resuscitation

Leave a Reply

Your email address will not be published.